package com.zj;


import java.util.HashMap;

/**
 * Hello world!
 */
public class App {


    public static void main(String[] args) {
//        ArrayList<Integer> list = new ArrayList();
//        list.add(1);
//        int[] arr = list.stream().mapToInt(Integer::intValue).toArray();
//        System.out.println(arr.length);
        System.out.println(new App().test(3));
    }


    public int test(int i) {
        return i == 0 ? 10 : this.test(--i) + 2;
    }

    /**
     * 最短
     * 输入：s = "ADOBECODEBANC", t = "ABC"
     * 输出："BANC"
     *
     * @param s
     * @param t
     */
    public void testWork(String s, String t) {
        HashMap<Character, Integer> map = new HashMap<>();
        int count = 0;
        for (char v : t.toCharArray()) {
            count += v;
            map.put(v, map.getOrDefault(v, 0) + 1);
        }

        int temp = count;
        StringBuilder ret = new StringBuilder();
        for (char v : s.toCharArray()) {
            //TODO 找最小子字符串
        }

    }

}
